import { createRouter, createWebHistory } from "vue-router";
import HomeView from "../views/HomeView.vue";
import CallBack from "../components/CallBack.vue";
import PlayerInfo from "../components/PlayerInfo.vue";
import GameDetails from "../components/GameDetails.vue";

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: "/",
      name: "home",
      component: HomeView,
    },
    {
      path: "/info",
      name: "info",
      component: PlayerInfo,
    },
    {
      path: "/gamedetails",
      name: "gamedetails",
      component: GameDetails,
    },
    {
      path: "/CallBack",
      name: "callback",
      component: CallBack,
    },
  ],
});

export default router;